import 'package:flutter/material.dart';

/// 底部border
/// ```
/// @param {Color} color
/// @param {bool} show  是否显示底部border
/// ```
Border cuBorderBottom({Color? color, bool show = true}) {
  return Border(
    bottom: BorderSide(
      color: (color == null || !show)
          ? (show ? const Color.fromRGBO(242, 242, 242, 1) : Colors.transparent)
          : color,
      width: 1,
    ),
  );
}
